package mammuthus.web.action

import java.util
import javax.servlet.http.HttpServletRequest
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.{RequestBody, RequestMapping}

import scala.collection.JavaConversions._

/**
 * Created by fengbingjian on 15/4/26 17:01.
 */
@Controller
class IndexAction {

  @RequestMapping(Array("/index.html"))
  def test(httpServletRequest: HttpServletRequest): String = {

    httpServletRequest.setAttribute("title", "test")
    "index"

  }
}
